package cn.group7.padserver.service.impl;

import cn.group7.padserver.dao.BankDao;
import cn.group7.padserver.pojo.Bank;
import cn.group7.padserver.service.BankService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 谷汉斌
 * @description 银行服务实现类
 * @createTime 2024/7/31 上午9:43
 */
@Service
public class BankServiceImpl implements BankService {

    @Resource
    private BankDao bankDao;

    /**
     * 查询所有银行信息
     *
     * @return 银行信息列表
     */
    @Override
    public List<Bank> selectAllBank() {
        return bankDao.selectAllBank();
    }
}
